projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1087f3e
)
(mouse-drag-region-1): Display region highlight only in the selected window.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 10 Apr 2002 15:04:19 +0000
(15:04 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 10 Apr 2002 15:04:19 +0000
(15:04 +0000)
lisp/mouse.el
patch
|
blob
|
history
diff --git
a/lisp/mouse.el
b/lisp/mouse.el
index f91707f1eea6fc7aa6845f2b55d99afc44302fe5..01f4479465fb699e24a4d487e710a769cc4c2080 100644
(file)
--- a/
lisp/mouse.el
+++ b/
lisp/mouse.el
@@
-739,7
+739,8
@@
If the click is in the echo area, display the `*Messages*' buffer."
(setq start-point (point))
(let ((range (mouse-start-end start-point start-point click-count)))
(move-overlay mouse-drag-overlay (car range) (nth 1 range)
- (window-buffer start-window)))
+ (window-buffer start-window))
+ (overlay-put mouse-drag-overlay 'window (selected-window)))
(deactivate-mark)
;; end-of-range is used only in the single-click case.
;; It is the place where the drag has reached so far